import type {Route}          from '../index.type'
import Layout                from '@/layout/index.vue'
import {createNameComponent} from '../createNode'

const route: Route[] = [
    {
        path     : '/pim',
        component: Layout,
        redirect : '/pim/epd',
        meta     : {title: '个人信息管理', icon: 'sfont system-home'},
        children : [
            {
                path     : 'epd',
                component: createNameComponent(() => import('@/views/main/pim/epd/index.vue')),
                meta     : {title: '编辑个人资料', icon: 'sfont system-home'}
            },
            {
                path     : 'password',
                component: createNameComponent(() => import('@/views/main/pim/password/index.vue')),
                meta     : {title: '修改密码', icon: 'sfont system-home'}
            },
        ]
    }
]

export default route
